home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 27 / MacFormat n. 27 (Spain) / Mac Format 26.bin / Shareware / Utilidades / DeskBots 1.1 / User's Manual / User's Manual.rsrc / TEXT_135.txt < prev    next >
Encoding:
Text File  |  1997-02-15  |  1.4 KB  |  31 lines

  1. ‚Ä¢Advanced Tags & Scripting
  2.  
  3.      DeskBots supports a number of tags which are primarily intended for the use of scripters.
  4.  
  5. <Halt>     Stops DeskBots' normal loop and speaks any other text in the phrase. Useful when you want total control over a DeskBots' actions for a period of time.
  6.  
  7. <Resume>     Restarts DeskBots' normal loop and speaks any other text in the phrase.
  8.  
  9. <SoundOff>     Temporarily deactivates the background sound. Does not effect preferences.
  10.  
  11. <SoundOn>     Temporarily activates the background sound. Does not effect preferences. Be careful to use this tag only once as multiple uses will cause the sound to be played on multiple channels.
  12.  
  13. <WindowMove>xx,yy     Moves the window to the given coordinates. Note that DeskBots does not perform any validation on the coordinates so it is possible to move the window offscreen. There should be no other text sent with this command.
  14.  
  15. <AddPhrase>     Adds a phrase to DeskBots internal phrase database. Do not send more than one line of text, and do not include a carriage return.
  16.  
  17.      You should be able to send AppleEvents directly to DeskBots in the following form:
  18.  
  19.      misc,TALK,'----':"Text of Phrase"
  20.  
  21.      Using OneClick you would send an event in the form:
  22.  
  23.      Process("DeskBots").SendAE "misc,TALK,'----':‚ÄúText of Phrase‚Äù"
  24.  
  25.      And, using AppleScript, you would use:
  26.  
  27. Tell Application "DeskBots"
  28.   TALK "Text of Phrase"
  29. End Tell
  30.  
  31.